package a.h;

import javax.swing.*;
import java.awt.*;

class ad
{
  private static Color a = ;
  
  public static Icon a()
  {
    Icon localIcon = null;
    try
    {
      localIcon = UIManager.getIcon("TableEditor.collapsedIcon");
    }
    catch (Exception localException1) {}
    if (localIcon != null) {
      return localIcon;
    }
    try
    {
      localIcon = UIManager.getIcon("Tree.collapsedIcon");
    }
    catch (Exception localException2) {}
    if (localIcon != null) {
      return localIcon;
    }
    return new c_(null);
  }
  
  public static Icon b()
  {
    Icon localIcon = null;
    try
    {
      localIcon = UIManager.getIcon("TableEditor.expandedIcon");
    }
    catch (Exception localException1) {}
    if (localIcon != null) {
      return localIcon;
    }
    try
    {
      localIcon = UIManager.getIcon("Tree.expandedIcon");
    }
    catch (Exception localException2) {}
    if (localIcon != null) {
      return localIcon;
    }
    return new b_(null);
  }
  
  public static Color a(String paramString, Color paramColor)
  {
    Object localObject;
    try
    {
      localObject = UIManager.get(paramString);
    }
    catch (Exception localException)
    {
      localObject = null;
    }
    return (localObject instanceof Color) ? (Color)localObject : paramColor;
  }
  
  public static Color d()
  {
    return a("ItemEditor.undefined", ec.a);
  }
  
  public static Color a(String paramString)
  {
    int i = ec.t;
    boolean bool = ec.s;
    if (i == 0) {
      if ("CheckBox.background".equals(paramString))
      {
        localColor = Color.gray;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if (i == 0) {
      if ("TextArea.inactiveBackground".equals(paramString))
      {
        localColor = Color.gray;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if (i == 0) {
      if ("TextField.inactiveBackground".equals(paramString))
      {
        localColor = Color.gray;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if (i == 0) {
      if ("TextArea.background".equals(paramString))
      {
        localColor = Color.white;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if (i == 0) {
      if ("TextField.background".equals(paramString))
      {
        localColor = Color.white;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if (i == 0) {
      if ("Label.foreground".equals(paramString))
      {
        localColor = Color.black;
        if ((i == 0) && (!bool)) {
          break label183;
        }
      }
    }
    if ("Label.disabledForeground".equals(paramString))
    {
      if (i != 0) {
        break label182;
      }
      localColor = Color.lightGray;
      if (!bool) {
        break label183;
      }
    }
    label182:
    Color localColor = ec.a;
    label183:
    return a(paramString, localColor);
  }
  
  public static float b(String paramString)
  {
    try
    {
      Font localFont = UIManager.getFont(paramString);
      if (localFont != null) {
        return localFont.getSize2D();
      }
    }
    catch (Exception localException) {}
    if ("Label.font".equals(paramString)) {
      return 12.0F;
    }
    return 12.0F;
  }
  
  private static Color f()
  {
    Color localColor = null;
    try
    {
      localColor = UIManager.getColor("Label.foreground");
    }
    catch (Exception localException) {}
    if (localColor != null) {
      return localColor;
    }
    return Color.black;
  }
  
  private static final class b_
    implements Icon
  {
    private b_() {}
    
    public int getIconHeight()
    {
      return 18;
    }
    
    public int getIconWidth()
    {
      return 18;
    }
    
    public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2)
    {
      Color localColor = paramGraphics.getColor();
      paramGraphics.setColor(ad.a);
      paramGraphics.drawRect(paramInt1 + 4, paramInt2 + 4, 10, 10);
      paramGraphics.drawLine(paramInt1 + 7, paramInt2 + 9, paramInt1 + 11, paramInt2 + 9);
      paramGraphics.setColor(localColor);
    }
    
    b_(ad.0 param0)
    {
      this();
    }
  }
  
  private static final class c_
    implements Icon
  {
    private c_() {}
    
    public int getIconHeight()
    {
      return 18;
    }
    
    public int getIconWidth()
    {
      return 18;
    }
    
    public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2)
    {
      Color localColor = paramGraphics.getColor();
      paramGraphics.setColor(ad.a);
      paramGraphics.drawRect(paramInt1 + 4, paramInt2 + 4, 10, 10);
      paramGraphics.drawLine(paramInt1 + 7, paramInt2 + 9, paramInt1 + 11, paramInt2 + 9);
      paramGraphics.drawLine(paramInt1 + 9, paramInt2 + 7, paramInt1 + 9, paramInt2 + 11);
      paramGraphics.setColor(localColor);
    }
    
    c_(ad.0 param0)
    {
      this();
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.ad

 * JD-Core Version:    0.7.0.1

 */